<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
  <title>Title</title>
  <!-- 新 Bootstrap 核心 CSS 文件 -->
  <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/detail.css"/>
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.6.0.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath}/js/linkageProvinceCity.js"></script>
</head>
<body>
<div class="container">
  <div class="row clearfix">
    <div class="col-md-6 column">
      <img style="width: 350px;height: 350px;"  src="${pageContext.request.contextPath}/upload/${pathInfo.pics}">
    </div>
    <div class="col-md-6 column">
      <h3>名称：${pathInfo.pathname}</h3>
      <p>${pathInfo.intro}</p>
      <h3>所去城市：${pathInfo.province}省 ${pathInfo.city} 市</h3>
      <h3>单价：${pathInfo.price} 元</h3>
      <h3>天数： ${pathInfo.daytime}天</h3>

      <div class="operate_btn">
        <a href="${pageContext.request.contextPath}/user/toAddOrder?pid=${pathInfo.pid}" class="buy_btn" id="buy_btn">立即购买</a>
        <a href="${pageContext.request.contextPath}/user/addCart?pid=${pathInfo.pid}" class="add_cart" id="add_cart">加入购物车</a>
      </div>

    </div>
  </div>
  <div class="row clearfix">
    <div class="col-md-12 column">
      <div class="row">
        <c:forEach var="path" items="${pathList.list}" >
          <div class="col-md-4" >
            <div class="thumbnail">
              <img id="images"  style="height: 300px" src="${pageContext.request.contextPath}/upload/${path.pics}">
              <div class="caption">
                <h3>
                    ${path.pathname}
                </h3>
                <p>
                    ${path.intro}
                </p>
                <p>
                  <a class="btn btn-primary" href="${pageContext.request.contextPath}/path/showPathInfo?pid=${path.pid}">浏览</a> <a class="btn" href="#">分享</a>
                </p>
              </div>
            </div>
          </div>
        </c:forEach>
      </div>
    </div>
  </div>
</div>


</body>
</html>
